package com.yidian.server.goods;

import com.yidian.entity.PageResult;
import com.yidian.pojo.goods.Template;

import java.util.List;
import java.util.Map;

/**
 * @author whb
 * @create 2021-05-17 19:28
 * @description 商品模板Service接口
 */
public interface TemplateService {
    public List<Template> findAll();

    public PageResult<Template> findPage(int page, int size);

    public List<Template> findList(Map<String, Object> searchMap);

    public PageResult<Template> findPage(Map<String, Object> searchMap, int page, int size);

    public Template findById(Integer id);

    public void add(Template template);

    public void update(Template template);

    public void delete(Integer id);
}
